include_directories(${PROJECT_SOURCE_DIR}/tinyhook/include)

set(CMAKE_SHARED_LINKER_FLAGS "-static")
set(CMAKE_EXE_LINKER_FLAGS "-static")

add_library(hookdll SHARED hookdll.cpp fkhook.cpp)
target_link_libraries(hookdll PUBLIC tinyhook ws2_32)
set_target_properties(hookdll PROPERTIES PREFIX "")

add_executable(injciv6 injciv6.cpp inject.cpp)
add_executable(civ6remove civ6remove.cpp inject.cpp)
